package com.dddexplained.designbootcamp.designpatterns.state.device.after;

public class TelnetService {
    private DeviceState currentState = new InitialState(this);

    public void setCurrentState(DeviceState deviceState) {
        currentState = deviceState;
    }

    public void transfer() {
        currentState.gotoMasterBoardShell();
        System.out.println("transfer in MasterBoardShell");
    }

    public void active() {
        currentState.gotoMasterBoardUshell();
        System.out.println("active in MasterBoardUshell");
    }

    public void inactive() {
        currentState.gotoMasterBoardUshell();
        System.out.println("inactive in MasterBoardUshell");
    }

    public void put() {
        currentState.gotoSlaveBoardShell();
        System.out.println("put in SlaveBoardShell");
    }

    public void get() {
        currentState.gotoSlaveBoardShell();
        System.out.println("get in SlaveBoardShell");
    }

    public void deleteFiles() {
        currentState.gotoSlaveBoaardUshell();
        System.out.println("delete files in SlaveBoardUshell");
    }

    public void dbtr1024() {
        currentState.gotoMasterBoardShell();
        System.out.println("dbtr1024 in MasterBoardShell");
    }

    public void dbtr1028() {
        currentState.gotoMasterBoardShell();
        System.out.println("dbtr1028 in MasterBoardShell");
    }
}
